﻿<ngt name="Id" value="0" type="number">
<div class="submenu1">
<a onclick="ShowMediaMessage('','text');"<eq name="Mo.Get.type" value="text"> class="current"</eq>>文本</a> |&nbsp;
<a onclick="ShowMediaMessage('','image');"<eq name="Mo.Get.type" value="image"> class="current"</eq>>图片</a> |&nbsp;
<a onclick="ShowMediaMessage('','voice');"<eq name="Mo.Get.type" value="voice"> class="current"</eq>>语音</a> |&nbsp;
<a onclick="ShowMediaMessage('','video');"<eq name="Mo.Get.type" value="video"> class="current"</eq>>视频</a> |&nbsp;
<a onclick="ShowMediaMessage('','music');"<eq name="Mo.Get.type" value="music"> class="current"</eq>>音乐</a> |&nbsp;
<a onclick="ShowMediaMessage('','news');"<eq name="Mo.Get.type" value="news"> class="current"</eq>>图文</a> |&nbsp;
<a onclick="ShowMediaMessage('','mutinews');"<eq name="Mo.Get.type" value="mutinews"> class="current"</eq>>多条图文</a>
</div>
</ngt>
<form action="?m=MediaMessages&a=savemessage" method="post" name="frm_sendmessage">
<input type="hidden" name="Id" value="{$Id}" />
<table width="550">
<tr class="l"><td width="65">消息名称：</td><td><input type="text" name="Name" value="{$Name:F.encodeHTML}" /></td></tr>
<switch name="Mo.Get.type">
	<case value="image" />
		<tr class="l"><td>选择图片：</td><td>
		<select name="Mediaid">
			<loop name="Media">
			<option value="{$Media.MediaId}"<eq name="Media.MediaId" value="Details.MediaId" type="assign"> selected="selected"</eq>>{$Media.Name}</option>
			</loop>
		</select><input type="hidden" name="Type" value="image" /></td></tr>
	<case value="mutinews" />
		<tr class="l"><td>选择新闻：</td><td>
		<select name="NewsId" multiple="multiple" size="8">
			<loop name="News">
			<option value="{$News.Id}"{$News.Id:CheckIn=Mo.value("Details")}>{$News.Name}</option>
			</loop>
		</select> 
		<input type="button" value="↑" onclick="MoveUp(this.form['NewsId']);" />
		<input type="button" value="↓" onclick="MoveDown(this.form['NewsId']);" />
		*可选择多条<input type="hidden" name="Type" value="mutinews" />
			</td></tr>
	<case value="voice" />
		<tr class="l"><td>选择语音：</td><td>
		<select name="Mediaid">
			<loop name="Media">
			<option value="{$Media.MediaId}"<eq name="Media.MediaId" value="Details.MediaId" type="assign"> selected="selected"</eq>>{$Media.Name}</option>
			</loop>
		</select><input type="hidden" name="Type" value="voice" /></td></tr>
	<case value="video" />
		<tr class="l"><td>视频标题：</td><td><input name="Title" value="{$Details.Title:F.encodeHTML}" type="text" /><input type="hidden" name="Type" value="video" /></td></tr>
		<tr class="l"><td>选择视频：</td><td>
		<select name="Mediaid">
			<loop name="Media">
			<option value="{$Media.MediaId}"<eq name="Media.MediaId" value="Details.MediaId" type="assign"> selected="selected"</eq>>{$Media.Name}</option>
			</loop>
		</select></td></tr>
		<tr class="l"><td>视频描述：</td><td><textarea name="Description" cols="60" rows="4">{$Details.Description:F.encodeHTML}</textarea></td></tr>
	<case value="music" />
		<tr class="l"><td>缩略图*：</td><td>
		<select name="Mediaid">
			<loop name="Media">
			<option value="{$Media.MediaId}"<eq name="Media.MediaId" value="Details.MediaId" type="assign"> selected="selected"</eq>>{$Media.Name}</option>
			</loop>
		</select><input type="hidden" name="Type" value="music" /></td></tr>
		<tr class="l"><td>标题：</td><td><input name="Title" value="{$Details.Title:F.encodeHTML}" type="text" class="width_400" /></td></tr>
		<tr class="l"><td>音乐地址*：</td><td><input name="MusicUrl" value="{$Details.MusicUrl:F.encodeHTML}" class="width_400" type="text" /></td></tr>
		<tr class="l"><td>高清音乐地址：</td><td><input name="HQMusicUrl" value="{$Details.HQMusicUrl:F.encodeHTML}" class="width_400" type="text" /></td></tr>
		<tr class="l"><td>描述：</td><td><textarea name="Description" cols="60" rows="2" class="width_400">{$Details.Description:F.encodeHTML}</textarea></td></tr>
	<case value="news" />
		<tr class="l"><td>标题*：</td><td><input name="Title" value="{$Details.Title:F.encodeHTML}" type="text" class="width_400" /><input type="hidden" name="Type" value="news" /></td></tr>
		<tr class="l"><td>内容*：</td><td><textarea name="Content" cols="60" rows="4" class="width_400">{$Details.Content:F.encodeHTML}</textarea></td></tr>
		<tr class="l"><td>URL：</td><td><input name="Url" value="{$Details.Url:F.encodeHTML}" type="text" class="width_350" /> <input type="button" value="分析URL" onclick="ParseUrl(this.form['Url'].value);" /></td></tr>
		<tr class="l"><td>图片URL：</td><td><input name="PicUrl" value="{$Details.PicUrl:F.encodeHTML}" type="text" class="width_400" /><div id="img_list_from_news"></div></td></tr>
	<default />
		<tr class="l"><td>文本内容：</td><td>
			<input type="hidden" name="Type" value="text" />
			<textarea name="Content" cols="60" rows="4" id="message_intro" class="width_400">{$Details.Content:F.encodeHTML}</textarea>
		</td></tr>
</switch>
</table>
</form>